/**
 * Created by XiMing on 2015/6/21.
 */
module.exports = function (sequelize, DataTypes) {
    var zhouzhi = sequelize.define('zhouzhi', {
        id: {
            type: DataTypes.BIGINT,
            primaryKey: true,
            autoIncrement: true
        },
        title: {
            type: DataTypes.TEXT,
            allowNull: false,
            defaultValue: ""
        },
        link: {
            type: DataTypes.TEXT,
            allowNull: false,
            defaultValue: ""
        },
        data: {
            type: DataTypes.TEXT,
            allowNull: false,
            defaultValue: ""
        },
        send_email:{
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue: 1
        },
        sub_send_email:{
            type: DataTypes.INTEGER,
            allowNull: false,
            defaultValue: 1
        }
    }, {
        timestamps: true,
        updatedAt: 'uts',
        createdAt: 'cts',
        tableName: 'zhouzhi'
    });
    return zhouzhi;
};